package cn.zjutleo.village_server.mapper;

import cn.zjutleo.village_server.entity.HouseRentOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HouseRentOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(HouseRentOrder record);


    int insertSelective(HouseRentOrder record);

    HouseRentOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(HouseRentOrder record);

    int updateByPrimaryKey(HouseRentOrder record);

    HouseRentOrder selectByTenantIdAndRentId(@Param("tenantId") Integer tenantId, @Param("rentId") Integer rentId);

    Integer selectPrimaryKeyByIds(@Param("rentId") Integer rentId,
                                  @Param("tenantId") Integer tenantId,
                                  @Param("hostId") Integer hostId);

    List<HouseRentOrder> selectAllHouseRentOrder();
}
